package org.lt.resume.controller.user;

import org.lt.resume.domain.users.User;
import org.lt.resume.service.userserviceInterface.UserServiceInterface;

import com.opensymphony.xwork2.ActionSupport;

public class SaveUserInfoController extends ActionSupport {

	/** **/
	private static final long serialVersionUID = -1475816946588629632L;

	private String message = "该用户信息已保存";
	private String password;
	
//	private String id;
//	
//	private String username;
//
//	private String subcompany;
//
//	private String mailaddress;
//
//	private String memo;

	private User user = new User();

	private UserServiceInterface userservice;

	@Override
	public String execute() throws Exception {

		userservice.updateUser(user);
		return null;
	}


//	public String getId() {
//		return id;
//	}

	public void setId(String id) {
		int userid = Integer.valueOf(id);
		user.setId(userid);
	}

//	public String getUsername() {
//		return username;
//	}

	public void setUsername(String username) {
		user.setUsername(username);
	}

//	public String getMailaddress() {
//
//		return mailaddress;
//	}

	public void setMailaddress(String mailaddress) {
		user.setMailaddress(mailaddress);
	}

//	public String getMemo() {
//		return memo;
//	}

	public void setMemo(String memo) {
		user.setMemo(memo);
	}

//	public String getSubcompany() {
//		return subcompany;
//	}

	public void setSubcompany(String subcompany) {
		user.setSubcompany(subcompany);
	}

	public String getMessage() {
		return message;
	}


	public void setMessage(String message) {
		this.message = message;
	}


	public UserServiceInterface getUserservice() {
		return userservice;
	}

	public void setUserservice(UserServiceInterface userservice) {
		this.userservice = userservice;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		user.setPassword(password);
	}

}
